package com.wmyg.antifake.service;

import com.wmyg.antifake.entity.Product;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @author 王卓逸
 * @program TODO
 * @description TODO
 * @create 2019-05-08
 */
public interface ProductService {

    Boolean saveProduct(Product product, String username);

    List<Product> getProductList(String username);

    Page<Product> getProductPage(String username, Integer index);

    Boolean updateProduct(Product product, String username);

    Product findByProductId(String productId);

    Page<Product> getProductPage(String username, Integer index, String somethingLike);

}
